import { defineStore } from 'pinia'
import { ref, computed } from 'vue'

const storeSetup = () => {
  /* 定义数据--------------------------------------------------------------------- */
  // 歌单信息
  const playInfo = ref({
  })

  // 歌曲信息
  const songInfo = ref({})

  /* 定义函数--------------------------------------------------------------------- */


  // 返回参数
  return {
    playInfo,
    songInfo
  }
}

// 导出Store
export const usePlayStore = defineStore('play', storeSetup, { persist: true })
